<?php

	$to = $_REQUEST["EmailAddress"];
	$subject = "Aritax Consulting, Certificare 2010 - Declaratia 101";
	$msg = file_get_contents("Oferta.htm", true);

	$headers  = 'MIME-Version: 1.0' . "\r\n";
	$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
	$headers .= "From: adriana.popa@aritax.ro \r\n";
	$headers .= "Reply-To: adriana.popa@aritax.ro \r\n";	

	try
	{
		if (strlen($to) > 0)
			mail($to, $subject, $msg, $headers);
	}
	catch (Exception $exception)
	{
		
	}
	
	
	header("Location: declaratia.php");

?>